2005-04-07 Matthias Clasen <mclasen@redhat.com>
+ * gtk/updateiconcache.c (write_card16, write_card32): Avoid
+ unaligned access. (#172947)
+
+ * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
+ Consistently use the term "Bookmarks" in the UI. (#166906,
+ Sebastian Bacher)
+
Some fixes from Morten Welinder (#172947):
* gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2005-04-07 Matthias Clasen <mclasen@redhat.com>
+ * gtk/updateiconcache.c (write_card16, write_card32): Avoid
+ unaligned access. (#172947)
+
+ * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
+ Consistently use the term "Bookmarks" in the UI. (#166906,
+ Sebastian Bacher)
+
Some fixes from Morten Welinder (#172947):
* gtk/updateiconcache.c (icon_name_hash): Make this compiler-
2005-04-07 Matthias Clasen <mclasen@redhat.com>
+ * gtk/updateiconcache.c (write_card16, write_card32): Avoid
+ unaligned access. (#172947)
+
+ * gtk/gtkfilechooserdefault.c (file_list_build_popup_menu):
+ Consistently use the term "Bookmarks" in the UI. (#166906,
+ Sebastian Bacher)
+
Some fixes from Morten Welinder (#172947):
* gtk/updateiconcache.c (icon_name_hash): Make this compiler-
G_CALLBACK (add_bookmark_button_clicked_cb));
gtk_box_pack_start (GTK_BOX (hbox), impl->browse_shortcuts_add_button, TRUE, TRUE, 0);
gtk_tooltips_set_tip (impl->tooltips, impl->browse_shortcuts_add_button,
- _("Add the selected folder to the bookmarks"), NULL);
+ _("Add the selected folder to the Bookmarks"), NULL);
/* Remove bookmark button */
impl->browse_files_popup_menu_hidden_files_item = NULL;
}
-/* Callback used when the "Add to Shortcuts" menu item is activated */
+/* Callback used when the "Add to Bookmarks" menu item is activated */
static void
add_to_shortcuts_cb (GtkMenuItem *item,
GtkFileChooserDefault *impl)
impl->browse_files_tree_view,
popup_menu_detach_cb);
- item = gtk_image_menu_item_new_with_mnemonic (_("_Add to Shortcuts"));
+ item = gtk_image_menu_item_new_with_mnemonic (_("_Add to Bookmarks"));
impl->browse_files_popup_menu_add_shortcut_item = item;
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item),
gtk_image_new_from_stock (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU));
{
file_list_build_popup_menu (impl);
- /* The sensitivity of the Add to Shortcuts item is set in
+ /* The sensitivity of the Add to Bookmarks item is set in
* bookmarks_check_add_sensitivity()
*/
write_card16 (FILE *cache, guint16 n)
{
int i;
- gchar s[2];
- *((guint16 *)s) = GUINT16_TO_BE (n);
+ n = GUINT16_TO_BE (n);
- i = fwrite (s, 2, 1, cache);
+ i = fwrite ((char *)&n, 2, 1, cache);
return i == 1;
}
write_card32 (FILE *cache, guint32 n)
{
int i;
- gchar s[4];
- *((guint32 *)s) = GUINT32_TO_BE (n);
+ n = GUINT32_TO_BE (n);
- i = fwrite (s, 4, 1, cache);
+ i = fwrite ((char *)&n, 4, 1, cache);
return i == 1;
}